# Template file for 'blocky'
pkgname=blocky
version=0.19
revision=1
build_style=go
go_import_path="github.com/0xERR0R/blocky"
go_ldflags="-X github.com/0xERR0R/blocky/util.Version=${version} -X github.com/0xERR0R/blocky/util.BuildTime=$(date +%Y%m%d-%H%M%S)"
short_desc="DNS proxy and ad-blocker for the local network"
maintainer="privatewright <privateercp@protonmail.com>"
license="Apache-2.0"
homepage="https://github.com/0xERR0R/blocky"
distfiles="https://github.com/0xERR0R/blocky/archive/v${version}.tar.gz"
checksum=25aa341a836ded4f2c60eb7e3a578d8723148c327c297fdc572c342f8fc79c41

system_accounts="_blocky"
make_dirs="/etc/blocky 0700 _blocky _blocky"

post_install() {
	vsv blocky
	vinstall ${FILESDIR}/config.yaml 0600 etc/blocky
}
